﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection;
using Pixysoft.Weblications.Sango.Formular;
using Pixysoft.Weblications.Sango.Dao;

namespace Pixysoft.Weblications.Sango.Command.equipment
{
    partial class SangoEquipmentHandler
    {
        public eqm_repositoryexpandinfo eqm_repositoryexpandinfo()
        {
            string userCode = SangoManager.Authentication();

            eqm_repositoryexpandinfo response = ReflectionManager.CreatePojo<eqm_repositoryexpandinfo>();
            response.Succeed = false;

            Entities.Usr_Property property = UsrPropertyDao.getProperty(userCode);

            long goldprice = EquipmentFormular.getNextStoragePrice(property.Repositorycount);


            response.goldprice = goldprice;
            response.Succeed = true;
            return response;
        }


    }
    public interface eqm_repositoryexpandinfo : ISangoResponse
    {
        long goldprice { get;set;}
    }
}
